package com.dldata.display.control.Grinfo;

import com.dldata.base.businessmodel.SessionUserInfoEntity;
import com.dldata.base.utils.RightUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by dj on 2018-09-03.
 */
@Controller
@RequestMapping(value = "/Grinfo")
public class GrShController {
    @RequestMapping(value = "/GrSh")
    private String GetGrShList(Model model, @RequestParam Map<String, Object> params, HttpServletRequest request, HttpServletResponse response){
        SessionUserInfoEntity sysStaffEntity = RightUtil.getCurrentUser(request);
        model.addAttribute("sysStaffEntity", sysStaffEntity);
        return "Grinfo/GrSh";
    }
}
